package com.core.reach.cloudhub.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author ga.zhang
 * @version V1.0
 * @description: TODO
 * @date 2020/3/31 20:09
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Account implements Serializable {

    private static final long serialVersionUID = -81354518195609427L;

    /**
     * 主键id
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 总额度
     */
    private BigDecimal total;
    /**
     * 使用额度
     */
    private BigDecimal used;
    /**
     * 剩余额度
     */
    private BigDecimal residue;

}
